<form action="{:url()}" class="layui-form layui-form-pane" method="post" style="margin: 20px">


    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-inline">
                <input type="text" name="role_name" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <input type="hidden" name="status" value="1" autocomplete="off" class="layui-input">
    <div class="layui-form-item">
        <button class="layui-btn" lay-submit="" lay-filter="ajax">添加</button>
    </div>
</form>

<script>
    layui.use(['form'], function () {
        var form = layui.form;
        form.render();
    })
</script>